// 引入mongoose模块
const mongoose = require('mongoose');

//创建文档的结构对象（Schema）
let UserSchema = new mongoose.Schema({
    username : String,
    password : String,
});

//创建Model对象, 将Schema发布为Model
let UserModel = mongoose.model('users', UserSchema);

//暴露Model对象
module.exports = UserModel;
